package com.jt.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("user")//与表进行关联 如果名称一致,则可以省略括号
public class User implements Serializable{
	private static final long serialVersionUID = -7608936516759666971L;
	@TableId(type = IdType.AUTO)//主键自增
	private Integer id;
	private String name;
	private Integer age;
	private String sex;
}
